package com.ming_za.odupdaterserver.core.service;

import com.ming_za.odupdaterserver.core.exception.ROEnum;
import com.ming_za.odupdaterserver.core.utils.obj.ReturnPackage;

public class ReturnBusinessPackage <D> extends ReturnPackage<ROEnum,D> {
    public ReturnBusinessPackage(boolean success, ROEnum code, D data) {
        super(success, code, data);
    }

    public ReturnBusinessPackage(ROEnum code) {
        super(code == ROEnum.SUCCESS,code,null);
    }

    public ReturnBusinessPackage(ROEnum code, D data) {
        super(code == ROEnum.SUCCESS,code,data);
    }
}
